package com.dragons.spring5.jdbcTemplate.service;

import com.dragons.spring5.jdbcTemplate.dao.UserDao;
import com.dragons.spring5.jdbcTemplate.entities.User5;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {

    @Autowired
    private UserDao userDao;//注入 dao
    public void addUser(User5 user5){
        userDao.add(user5);
    }
}
